<template>
    <div class="container question-icon">
        <div class="row col-title">
            <div class="col">
                <div class>
                    {{ index + 1 }}.
                    {{ question.name }}
                </div>
            </div>
        </div>
        <contextlist v-bind="{ question }"></contextlist>
    </div>
</template>

<script setup lang='ts'>
import {
    toRefs,
} from "vue";



import contextlist from '../components/watchquestion/contextlist.vue';
import Studycodemodel from "../mysql_interface/studycodemodel";
type P = {
    question: Studycodemodel.Imatchquestion
    index: number
}

const prop = defineProps<P>()
const { question, index } = toRefs(prop);


</script>
<style scoped>
.slide-fade-enter-active {
    transition: all 0.3s ease;
}

.slide-fade-leave-active {
    transition: all 0.3s;
}

.marg {
    margin: 20px auto;
    padding: 3px;
}

.slide-fade-enter,
.slide-fade-leave-to {
    transform: translateX(10px);
    opacity: 0;
}

.el-icon-star-on {
    color: chartreuse;
    font-size: 24px;
}

.text-h {
    font-size: 16px;
    font-weight: 600;
    color: var(--color-303133);
}

.m-10 {
    margin-top: 26px;
    margin-bottom: 10px;
}

.pa {
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
}

.foter {
    padding-top: 10px;
    height: 60px;
    position: fixed;
    bottom: 0;
    width: 100vw;
    background-color: #fff;
    border-top: 1px solid #dfdfdf;
    margin-left: 0px;
    margin-right: 0px;
}

.tabs {
    margin: 25px;
}

.Drawer {
    position: absolute;
    bottom: 0px;
    width: 100%;
    background-color: #fff;
    border-top: 1px solid #dfdfdf;
    min-height: 300px;
}

.textarea {
    position: relative;
    padding: 5px;
    border: 1px solid #eeeeee;
}

.textarea {
    width: 100%;
    height: 150px;
}

.el-icon-video-play {
    width: 50px;
    height: 50px;
    font-size: 48px;
    display: block;
    position: absolute;
    right: -15px;
    bottom: 115px;
    z-index: 989;
    cursor: pointer;
    transition: all 0.5s;
}

.el-icon-video-play:hover {
    color: blueviolet;
}

#question.btn-outline-primary:hover {
    background-color: #409eff;
}

.pic-main {
    max-height: 85vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-bottom: 100px;
}

.pic-main::-webkit-scrollbar {
    width: 3px;
    height: 1px;
}

.pic-main::-webkit-scrollbar-thumb {
    border-radius: 3px;
    box-shadow: inset 0 0 5px rgba(0, 0, 255, 0.3);
    background: #535353;
}

.pic-main::-webkit-scrollbar-track {
    box-shadow: inset 0 0 5px rgba(0, 0, 255, 0.3);
    border-radius: 3px;
    background: #ededed;
}

.span-h {
    display: inline-block;
    margin-left: 35px;
}

.button {
    padding: 2px 8px;
    font-size: 12px;
    margin: 10px 5px;
}

.border-dark {
    color: #32325d;
}

.btn-login {
    background-color: var(--color-50);
    color: #fff;
}

.btn-login:hover {
    background-color: rgb(11, 21, 38);
    color: #fff;
}

h5 {
    font-size: 18px;
}

.question-icon {
    padding-top: 5px;
}

.question-icon .icon-z {
    height: 145px;
    width: 145px;
    display: inline-block;
    margin-right: 10px;
}

.question-icon .icon-t {
    display: inline-block;
    height: 145px;
    width: 125px;
}

.question-icon .card {
    height: 145px;
}

.question-icon .card .card-body {
    padding: 0.25rem;
}

.question-icon .card-img-top {
    height: 52px;
    width: 52px;
    margin: 15px auto;
}

.cE3F1FF {
    background-color: #e3f1ff;
}

.col-title {
    font-size: var(--size-t1);
    font-family: Microsoft YaHei;
    font-weight: bold;
    color: var(--color-303133);
    margin-top: 20px;
    margin-bottom: 22px;
    line-height: 32px;
    height: 32px;
}
</style>

<style>
#question .el-tabs__header {
    padding: 0;
}

.Drawer .el-tabs__content {
    margin: 5px;
}

#question button:focus {
    outline: none;
}
</style>